﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace AviumX.AviumCore.Hardware.Mouse
{
    class Mouse
    {
        public Cosmos.Hardware.Mouse TheMouse = new Cosmos.Hardware.Mouse();
        public void Start()
        {
            //Start the mouse.
            TheMouse.Initialize();
        }
        public int Getx()
        {
            //Get x.
            return TheMouse.X;
        }
        public int Gety()
        {
            //Get y
            return TheMouse.Y;
        }

        /*
         * Mouse button events, or well booleans. Same thing. Works for now.
         */

        #region " Used for checking clicks "
        public Boolean CheckLeftClick()
        {
            if (TheMouse.Buttons == Cosmos.Hardware.Mouse.MouseState.Left)
            {
                return true;
            }
            else
            {
                return false;
            }
        }
        public Boolean CheckRightClick()
        {
            if (TheMouse.Buttons == Cosmos.Hardware.Mouse.MouseState.Right)
            {
                return true;
            }
            else
            {
                return false;
            }
        }
        public Boolean CheckMiddleClick()
        {
            if (TheMouse.Buttons == Cosmos.Hardware.Mouse.MouseState.Middle)
            {
                return true;
            }
            else
            {
                return false;
            }
        }
        public Boolean CheckNoClick()
        {
            if (TheMouse.Buttons == Cosmos.Hardware.Mouse.MouseState.None)
            {
                return true;
            }
            else
            {
                return false;
            }
        }
        #endregion
    }
}
